package com.ibeeking.found.open.service.common.query;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName GoodsQuery
 * @Description
 * @Author ibeeking
 * @Date 2021-06-17 19:54
 **/
@Data
public class GoodsQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    /**
     * 商品sku
     */
    @NotNull(message = "商品skuId不能为空")
    private Long goodsSkuId;

    @NotNull(message = "商品数量不能为空")
    private Integer qty;

    @NotNull(message = "商品单价不能为空")
    private BigDecimal price;
}
